'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {

  require('./api.js')(app);
  require('./admin.js')(app);
  require('./reptile.js')(app);
  require('./oauth.js')(app);
  require('./shortConnection.js')(app);
  require('./tool.js')(app);
  require('./view.js')(app);
  require('./elasticsearch.js')(app);

  // 聊天室
  app.io.of('/chat').route('message', app.io.controller.chat.message);
};

